﻿using System;
using Microsoft.Practices.Unity;
using EasyInvoice.ApplicationContext;
using appCtx = EasyInvoice.ApplicationContext.AppContext;
using EasyInvoice.SqlCEDAL;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using EasyInvoice.Services;

namespace EasyInvoice.UnitTests
{
    [TestClass]
    public class ClientsUnitTest
    {
        [TestInitialize]
        public void Initialize()
        {
            appCtx.Instance.IoC.RegisterType<IClients, Clients>();
        }

        [TestCategory("ClientCreation"), TestCategory("Weekly"), TestMethod]
        public void ClientOperations()
        {
            Services.ClientsService srdClients = appCtx.Instance.IoC.Resolve<ClientsService>();

            var sss = srdClients.GetAll();
            srdClients.Save(new Model.Client() { Name = "", Address = "" });
        }
    }
}
